﻿<UserControl x:Class="MiniUML.Plugins.Home.Controls.Shapes.Circle"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:controls="clr-namespace:MiniUML.View.Controls;assembly=MiniUML.View"
             x:Name="_this"
             Height="0" Width="0">
    <Canvas Width="{Binding ElementName=_this, Path=Diameter}"
            Height="{Binding ElementName=_this, Path=Diameter}"
            HorizontalAlignment="Center"
            VerticalAlignment="Center">
        <Grid Width="{Binding ElementName=_this, Path=Diameter}"
              Height="{Binding ElementName=_this, Path=Diameter}">
            <Ellipse Stroke="Black" Fill="White" />
            <controls:SingleClickBlock HorizontalAlignment="Stretch" VerticalAlignment="Center" >
                <TextBox Text="{Binding Attribute[Text].Value}" IsTabStop="False" BorderThickness="0" Background="Transparent" TextAlignment="Center"/>
            </controls:SingleClickBlock>
        </Grid>
    </Canvas>
</UserControl>
